package com.astrofizzbizz.raspberrypicamera.shared;

public class FieldVerifier 
{

	public static boolean isValidName(String name) 
	{
		if (name == null) {
			return false;
		}
		return name.length() > 3;
	}
	public String escapeHtml(String html) 
	{
		if (html == null) {
			return null;
		}
		return html.replaceAll("&", "&amp;").replaceAll("<", "&lt;")
				.replaceAll(">", "&gt;");
	}
}
